package com.today36524.stuAch.util;

import java.util.Comparator;

import com.today36524.stuAch.bean.Student;

public class TotalComparator implements Comparator<Student> {

    @Override
    public int compare(Student o1, Student o2) {
        return (o2.getYuwen()+o2.getShuxue()+o2.getYingyu())
                -(o1.getYuwen()+o1.getShuxue()+o1.getYingyu());
    }

}
